home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-11 | 5.2 KB | 319 lines | [TEXT/MPS ] |
- ;
- ; File: QuickdrawText.a
- ;
- ; Copyright: © 1984-1994 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Version: Universal Interfaces 2.0a3 ETO #16, MPW prerelease. Friday, November 11, 1994.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
-
- IF &TYPE('__QUICKDRAWTEXT__') = 'UNDEFINED' THEN
- __QUICKDRAWTEXT__ SET 1
-
-
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- ; include 'ConditionalMacros.a' ;
-
- IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
- include 'MixedMode.a'
- ENDIF
-
- ; CharToPixel directions
- leftCaret EQU 0 ;Place caret for left block
- rightCaret EQU -1 ;Place caret for right block
- hilite EQU 1 ;Direction is SysDirection
- smLeftCaret EQU 0 ;Place caret for left block - obsolete
- smRightCaret EQU -1 ;Place caret for right block - obsolete
- smHilite EQU 1 ;Direction is TESysJust - obsolete
- ;Constants for styleRunPosition argument in PortionLine, DrawJustified,
- ; MeasureJustified, CharToPixel, and PixelToChar.
- onlyStyleRun EQU 0 ; This is the only style run on the line
- leftStyleRun EQU 1 ; This is leftmost of multiple style runs on the line
- rightStyleRun EQU 2 ; This is rightmost of multiple style runs on the line
- middleStyleRun EQU 3 ; There are multiple style runs on the line and this
- ; is neither the leftmost nor the rightmost.
- smOnlyStyleRun EQU 0 ; obsolete
- smLeftStyleRun EQU 1 ; obsolete
- smRightStyleRun EQU 2 ; obsolete
- smMiddleStyleRun EQU 3 ; obsolete
-
- ; type for styleRunPosition parameter in PixelToChar etc.
- FontInfo RECORD 0
- ascent ds.w 1
- descent ds.w 1
- widMax ds.w 1
- leading ds.w 1
- sizeof EQU 8
- ENDR
-
- OffPair RECORD 0
- offFirst ds.w 1
- offSecond ds.w 1
- sizeof EQU 4
- ENDR
-
- IF GENERATING68K THEN
- Macro
- _Pixel2Char
- dc.w $2F3C
- dc.w $820E
- dc.w $0014
- dc.w $A8B5
- EndM
- ELSE
- IMPORT Pixel2Char
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _Char2Pixel
- dc.w $2F3C
- dc.w $820C
- dc.w $0016
- dc.w $A8B5
- EndM
- ELSE
- IMPORT Char2Pixel
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _PixelToChar
- dc.w $2F3C
- dc.w $8222
- dc.w $002E
- dc.w $A8B5
- EndM
- ELSE
- IMPORT PixelToChar
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _CharToPixel
- dc.w $2F3C
- dc.w $821C
- dc.w $0030
- dc.w $A8B5
- EndM
- ELSE
- IMPORT CharToPixel
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _DrawJustified
- dc.w $2F3C
- dc.w $8016
- dc.w $0032
- dc.w $A8B5
- EndM
- ELSE
- IMPORT DrawJustified
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _MeasureJustified
- dc.w $2F3C
- dc.w $801A
- dc.w $0034
- dc.w $A8B5
- EndM
- ELSE
- IMPORT MeasureJustified
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _PortionLine
- dc.w $2F3C
- dc.w $8412
- dc.w $0036
- dc.w $A8B5
- EndM
- ELSE
- IMPORT PortionLine
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _HiliteText
- dc.w $2F3C
- dc.w $800E
- dc.w $001C
- dc.w $A8B5
- EndM
- ELSE
- IMPORT HiliteText
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _DrawJust
- dc.w $2F3C
- dc.w $8008
- dc.w $001E
- dc.w $A8B5
- EndM
- ELSE
- IMPORT DrawJust
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _MeasureJust
- dc.w $2F3C
- dc.w $800C
- dc.w $0020
- dc.w $A8B5
- EndM
- ELSE
- IMPORT MeasureJust
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _PortionText
- dc.w $2F3C
- dc.w $8408
- dc.w $0024
- dc.w $A8B5
- EndM
- ELSE
- IMPORT PortionText
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _VisibleLength
- dc.w $2F3C
- dc.w $8408
- dc.w $0028
- dc.w $A8B5
- EndM
- ELSE
- IMPORT VisibleLength
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _GetFormatOrder
- dc.w $2F3C
- dc.w $8012
- dc.w $FFFC
- dc.w $A8B5
- EndM
- ELSE
- IMPORT GetFormatOrder
- ENDIF
-
- IF GENERATING68K THEN
- _TextFont: OPWORD $A887
- ELSE
- IMPORT TextFont
- ENDIF
-
- IF GENERATING68K THEN
- _TextFace: OPWORD $A888
- ELSE
- IMPORT TextFace
- ENDIF
-
- IF GENERATING68K THEN
- _TextMode: OPWORD $A889
- ELSE
- IMPORT TextMode
- ENDIF
-
- IF GENERATING68K THEN
- _TextSize: OPWORD $A88A
- ELSE
- IMPORT TextSize
- ENDIF
-
- IF GENERATING68K THEN
- _SpaceExtra: OPWORD $A88E
- ELSE
- IMPORT SpaceExtra
- ENDIF
-
- IF GENERATING68K THEN
- _DrawChar: OPWORD $A883
- ELSE
- IMPORT DrawChar
- ENDIF
-
- IF GENERATING68K THEN
- _DrawString: OPWORD $A884
- ELSE
- IMPORT DrawString
- ENDIF
-
- IF GENERATING68K THEN
- _DrawText: OPWORD $A885
- ELSE
- IMPORT DrawText
- ENDIF
-
- IF GENERATING68K THEN
- _CharWidth: OPWORD $A88D
- ELSE
- IMPORT CharWidth
- ENDIF
-
- IF GENERATING68K THEN
- _StringWidth: OPWORD $A88C
- ELSE
- IMPORT StringWidth
- ENDIF
-
- IF GENERATING68K THEN
- _TextWidth: OPWORD $A886
- ELSE
- IMPORT TextWidth
- ENDIF
-
- IF GENERATING68K THEN
- _MeasureText: OPWORD $A837
- ELSE
- IMPORT MeasureText
- ENDIF
-
- IF GENERATING68K THEN
- _GetFontInfo: OPWORD $A88B
- ELSE
- IMPORT GetFontInfo
- ENDIF
-
- IF GENERATING68K THEN
- _CharExtra: OPWORD $AA23
- ELSE
- IMPORT CharExtra
- ENDIF
-
- IF GENERATING68K THEN
- _StdText: OPWORD $A882
- ELSE
- IMPORT StdText
- ENDIF
-
- IF GENERATING68K THEN
- _StdTxMeas: OPWORD $A8ED
- ELSE
- IMPORT StdTxMeas
- ENDIF
-
- IF OLDROUTINENAMES THEN
- ENDIF
- ENDIF ; __QUICKDRAWTEXT__
-